Trò chơi 2D Cow Boy Runner

52.947 lượt xem;
1 using System.Collections;
2 using
System.Collections.Generic;
3 using
UnityEngine;
4
5 public
class GroundDestroyer : MonoBehaviour {
6
7
8     
void Start() {
9         
10     }
11
12     
void OnTriggerEnter2D(Collider2D target){
13         
if(target.tag == "Grounded") {
14
15             target.gameObject.SetActive (
false);
16         }
17     }
18 }


Gõ tìm kiếm nhanh...